//
//  CBattleSystem.h
//  Monster_Martial_Arts_Version_0
//
//  Created by bk on 13/1/5.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#ifndef Monster_Martial_Arts_Version_0_CBattleSystem_h
#define Monster_Martial_Arts_Version_0_CBattleSystem_h

#include "cocos2d.h"
#include "Singleton.h"

const char testName[] = "knight";


using namespace cocos2d;

class CPlayerControl;
class CBattleSystem : public Singleton<CBattleSystem>
{
public:
    
    enum
    {
        PET_1_X_POS = 70,
        PET_1_Y_POS = 100,
        
        PET_2_X_POS = 80,
        PET_2_Y_POS = 130,
        
        PET_3_X_POS = 40,
        PET_3_Y_POS = 60,
    };
    
    enum
    {
        CMONSTER_1_X_POS = 500,
        CMONSTER_2_X_POS = -50,
    };
    
    CBattleSystem();
    ~CBattleSystem();
    
    
    void    Init();
    void    Update(float dt);
    
    void    Start();
    void    Leave();

protected:
    
    void    CreatePlayerTeam(CCNode*);
    void    CreateMonsterTeam(CCNode*);
    
private:
    
    CPlayerControl* m_PlayerCtr;
};



#endif
